package com.yuyou.tas.lesson.service;

import java.util.List;

import com.yuyou.tas.service.api.admin.dto.OfficeTokenDTO;
import com.yuyou.tas.service.api.lesson.entity.LessonClassChapter;
import com.yuyou.tas.util.bean.LoginRedisObj;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;


public interface ILessonClassChapterService {
    int deleteByPrimaryKey(Long id);

    int deleteByLessonClassId(Long lessonClassId);

    int insert(LessonClassChapter record);

    LessonClassChapter selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LessonClassChapter record);
    
    List<LessonClassChapter> findBylesChaId(Long lessonChapterId);

    List<LessonClassChapter> findByLessonClassId(Long lessonClassId);
    
    /**
     * 复制课程讲次到班级讲次（课件,讲义）
     * @param lessonClassChapterId
     * @param type "类型(1:课件，2：讲义
     * @return
     */
    ResBoolSimpleInfo<OfficeTokenDTO> copyLessonChapter(Long lessonClassChapterId, Integer type,LoginRedisObj loginRedisObj)throws Exception;
    
    
}